<!DOCTYPE html>
<html lang="zh-Hans">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="/lib/pace/pace-theme-minimal.min.css">
  <script src="/lib/pace/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"sophimp.gitee.io","root":"/","scheme":"Pisces","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="搞开发也有几年时间了，到现在还没有拿得出手的项目，不管是找工作，还是副业， 都没有出色的地言。思考一下个人职业规早是有必要的。整理旧文章, 发现以前的文字中的不成熟，看着脸有些发红， 然而得直面过去的自己，先放在这里，有时间再作思考， 重新整理。">
<meta property="og:type" content="article">
<meta property="og:title" content="个人开发的积累">
<meta property="og:url" content="http://sophimp.gitee.io/2019/11/28/android/personal_library_accumulate/index.html">
<meta property="og:site_name" content="Sophimp&#39;s Space">
<meta property="og:description" content="搞开发也有几年时间了，到现在还没有拿得出手的项目，不管是找工作，还是副业， 都没有出色的地言。思考一下个人职业规早是有必要的。整理旧文章, 发现以前的文字中的不成熟，看着脸有些发红， 然而得直面过去的自己，先放在这里，有时间再作思考， 重新整理。">
<meta property="article:published_time" content="2019-11-28T03:49:26.000Z">
<meta property="article:modified_time" content="2021-03-15T03:49:47.921Z">
<meta property="article:author" content="Sophimp">
<meta property="article:tag" content="随笔">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://sophimp.gitee.io/2019/11/28/android/personal_library_accumulate/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-Hans'
  };
</script>

  <title>个人开发的积累 | Sophimp's Space</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

	
	<script type="text/javascript" src="//cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js"></script>
	

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Sophimp's Space</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">coding & thinking</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>

  <a href="https://github.com/sophimp" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-Hans">
    <link itemprop="mainEntityOfPage" href="http://sophimp.gitee.io/2019/11/28/android/personal_library_accumulate/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.png">
      <meta itemprop="name" content="Sophimp">
      <meta itemprop="description" content="A dream begin">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Sophimp's Space">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          个人开发的积累
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">Posted on</span>

              <time title="Created: 2019-11-28 11:49:26" itemprop="dateCreated datePublished" datetime="2019-11-28T11:49:26+08:00">2019-11-28</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">Edited on</span>
                <time title="Modified: 2021-03-15 11:49:47" itemprop="dateModified" datetime="2021-03-15T11:49:47+08:00">2021-03-15</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">In</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E9%9A%8F%E7%AC%94/" itemprop="url" rel="index"><span itemprop="name">随笔</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="Views" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">Views: </span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
            <div class="post-description">搞开发也有几年时间了，到现在还没有拿得出手的项目，不管是找工作，还是副业， 都没有出色的地言。思考一下个人职业规早是有必要的。整理旧文章, 发现以前的文字中的不成熟，看着脸有些发红， 然而得直面过去的自己，先放在这里，有时间再作思考， 重新整理。</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h2 id="自身开发库的积累"><a href="#自身开发库的积累" class="headerlink" title="自身开发库的积累."></a>自身开发库的积累.</h2><p>自身的开发库, 肯定撇不开开源库, 然后, 将开源库抹去痕迹成为自己的库, 那也是不道德的, 也没有必要. </p>
<p>但是开源库, 如果不需要定制的, 直接依整maven的lib库, 肯定也不能完美满足自己的需求, 这个时候就需要定制</p>
<p>定制分小范围修改, 大范围重构性质修改. </p>
<p>小范围修改 </p>
<pre><code>一般是想与原仓库保持跟踪. 自己的修改另建一个分支, 要么PR到主库, 没法PR的, 那就放自己的fork里维护着. 

这里就会出现一种情况, 主工程使用一个git跟踪, 各模块另有git跟踪, 主工程里的git又不想重复跟踪各模块的代码. 那么要怎么维护呢? 

当然各模块自己新开发的代码同样也可以使用git单独跟踪, 这样一个场景是符合大团队, 多人合作开发的. 同样也跟组件式开发理念相符合. 最好是每个模块都可以单独运行, 也强制解耦. 

这样的一种模式如何管理呢? aosp的项目就是这样模式, 我就要是借aosp 的项目管理手段来积累构建自己的开发库. </code></pre><p>大范围修改</p>
<pre><code>就直接另开一仓库维护吧. </code></pre><h2 id="前置技术"><a href="#前置技术" class="headerlink" title="前置技术"></a>前置技术</h2><p>repo, git, python, shell, make, gradle</p>
<p>每一项技术给一份简明的介绍与操作指南, 更说细的教程与源码分析, 征求提交. </p>
<p>提供一个提交模板, 一是用来记录作者信息, 二是方便后续使用工具做信息汇总, 就像markdown 自动生成目录那样, 这是一份doc模板. </p>
<h2 id="呼吁开源"><a href="#呼吁开源" class="headerlink" title="呼吁开源"></a>呼吁开源</h2><p>像左耳朵耗子(陈皓, codeshell), 王垠, 云风, Milo Yip 这样的人, 不管有多少人黑, 黑的是还是不是, 都不影响他们对开源界做的贡献, 不影响他们善良的光辉. </p>
<p>使用git, linux一样的开源协议. </p>
<p>开源确实是促进人类共同体的一部分. </p>
<p>实现自身价值, 照顾好家人, 帮助善良的人, 为族群发声, 为国家争荣誉.<br>任意巅倒次序的人, 一般都不值得信任. </p>
<p>以自己的经历证明, 实现的过程确实是这样的. 虽然我还只是在第一步的路上. </p>
<p>但是这些不影响制定目标. 我的目标就是要促进人类进步而努力. 减少知识获取的门槛, 让更多人一起进步. 进步的人多了, 思想才会产生更高形态的进化. </p>
<p>打破开源的魔咒</p>
<pre><code>开源是开放自己写的东西, 而不是将已有的开源重新实现一遍. 不要因为维护所谓的帐号, 强行开源一些重复的且无价值的东西.

newbie经常就会有这样的焦虑, 不管是在学习, 还是实现书上的练习, 或者看标准库的源码, 仿佛都是在抄抄抄, 我能开源什么呢? 

学习是一件积累的事情, 急不得, 开源本身是一件输出的工作. 没有积累, 何来的输出, 靠天马行空的想象, 那是不靠谱的. 这就像教父中说的,先实现自身的价值, 才能去帮助善良的人.  

不管是哪个行业, 抄是必免不了的, 想什么领域都想打上自己的印记, 这是异想天开. 所以, 前期老老实实地吸收前人已经探索过的知识. 等知识积累到一定的程度, 创新是自然而然的事情. 不满他人的设计, 实现, 在他人的基础上修改, 就是微创新. 微创新积累的够多了. 就是革新. 

那么前其总得有一些驱动力, 加强练习基础能力: 如写作能力, 阅读能力, 口语表达能力, 这些都是后续输出的基本能力. 而且newbie在学习时候的困惑也是很宝贵的, 将之记录下来, 分享出来, 也方便后续的布道者探索出一条更加容易传播知识的道路. 设计出更加合理的学习路线. 

因为, 人是健忘的, 很多在学习过程中的困惑, 等到后来解决了, 再想回过头来分享, 很容易就忘掉当时的思路. 所以, 教程经常给人一种, 易知, 显然可得的感觉, 但是这样对于新手来说是很不友好的. </code></pre>
    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/%E9%9A%8F%E7%AC%94/" rel="tag"># 随笔</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2019/11/12/android/rom/nx611j_port_review/" rel="prev" title="Nubia z18 mini 移植总结">
      <i class="fa fa-chevron-left"></i> Nubia z18 mini 移植总结
    </a></div>
      <div class="post-nav-item">
    <a href="/2019/11/28/thought/thinking_about_write/" rel="next" title="如何提升写作">
      如何提升写作 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#自身开发库的积累"><span class="nav-number">1.</span> <span class="nav-text">自身开发库的积累.</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#前置技术"><span class="nav-number">2.</span> <span class="nav-text">前置技术</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#呼吁开源"><span class="nav-number">3.</span> <span class="nav-text">呼吁开源</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Sophimp"
      src="/images/avatar.png">
  <p class="site-author-name" itemprop="name">Sophimp</p>
  <div class="site-description" itemprop="description">A dream begin</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">86</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
        <span class="site-state-item-count">19</span>
        <span class="site-state-item-name">categories</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
        <span class="site-state-item-count">89</span>
        <span class="site-state-item-name">tags</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/sophimp" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;sophimp" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:sophimp2020@126.com" title="E-Mail → mailto:sophimp2020@126.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Sophimp</span>
</div>

<!--
  <div class="powered-by">Powered by <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://pisces.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Pisces</a>
  </div>
-->

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="Total Visitors">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="Total Views">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
